import os
import os.path as osp

if __name__ == '__main__':
  seq_dir = '/data/mwh/scripts/output/ovsr/div2k_seq_x4_train'
  output_file = 'data/filelist_div2k_seq_train.txt'

  seq_list = sorted([osp.join(seq_dir, seq) for seq in os.listdir(seq_dir)])

  with open(output_file, 'w') as f:
    for seq_path in seq_list:
      f.write(f'{seq_path}\n')
    f.close()
  print('Done.')
